-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Init overview page #39
Merged
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
- use a stack elements in the vertical or horizontal direction - create separate components for icons - add `currencies.ts` file
- add a toggle button to switch the currency - add a button to the documentation
kkosiorowska
force-pushed
the
init-overview-page
branch
from
November 28, 2023 17:46
fc4bd5b
to
2781325
Compare
The Stack component and the Flex component have their children spaced out evenly but the key difference is that the Stack won't span the entire width of the container whereas the Flex will. Let's use the Stack component when it is a simple row or column of items. If we need to customize the items let's use Flex. More info: https://chakra-ui.com/docs/components/stack#notes-on-stack-vs-flex
kkosiorowska
force-pushed
the
init-overview-page
branch
from
November 28, 2023 17:50
2781325
to
5260526
Compare
Closed
r-czajkowski
requested changes
Dec 5, 2023
kkosiorowska
force-pushed
the
init-overview-page
branch
from
December 6, 2023 07:58
0231229
to
2dca2bf
Compare
`createIcon` add the svg tag by default. Let's remove the unnecessary extra tag.
r-czajkowski
requested changes
Dec 7, 2023
r-czajkowski
requested changes
Dec 8, 2023
By `CardProps` we can avoid unnecessary wrappers in grid and control content from the parent component.
r-czajkowski
approved these changes
Dec 8, 2023
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR splits the site into 3 main elements: position details pool stats and transaction history. The page split should make it easier to work on the separate elements of the page. The size and positioning of elements may change. Please don't pay more attention to styles. These also change dynamically and typography or colors are not defined yet. The purpose of this PR is to define only the separate components. Fixes to the styles will be done in the next steps.
What has been done
createIcon
function to use the dedicatedIcon
component from Chakra UI. This will allow us to easily change the color of our icons depending on the situation. This is possible by using thecurrentColor
value for thesvg
.currencies.ts
VStack
,HStack
andFlex
- Let's use theStack
component when it is a simple row or column of items. If we need to customize the items let's use Flex.UI